package com.ruoyi.common.core.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
public class HzitConstants {
	/**
	 * 广告列表
	 */
	public static final String CONTENT_LIST = "hzit_content_list";
	public static final String HIGHLIGNT_FIELDS = "title";
	public static final String HIGHLIGHT_PRETAGS = "<span style='color:red'>";
	public static final String HIGHT_POSTTAGS = "</span>";
	public static final String AGGREGATIONS_FIELDS = "category";            // 分组的字段名
	public static final String AGGREGATIONS_KEYS = "categoryAgg";           // 分组的key的名字
	public static final String ITEMCAT_LIST = "itemCatList";

	public static final String BRAND_LIST = "brandList";                    // 品牌列表
	public static final String SPEC_LIST = "specList";                      // 规格列表
	public static final String PRICE_FIELDS = "price";                      // 价格字段
	public static final String CATEGORY_FIELDS = "category";                // 分类查询字段
	public static final String BRAND_FIELDS = "brand";                      // 品牌查询字段
	public static final String SPEC_QUERY_PREFIX = "specMap.";              // 规格查询的前缀字段
	public static final String SPEC_QUERY_SUFFIX = ".keyword";              // 规格查询的后缀字段（代表精准查询）
	public static final List<String> MULTI_MATCH_QUERY_FIELDS = Arrays.asList("title", "brand", "category");  // 多字段匹配查询的字段


	public static final String ITEM_LIST = "itemList";                      // 商品列表名字
	public static final String CATEGORY_LIST = "categoryList";              // 分类列表名字
	public static final String TOTAL_PAGE = "totalPage";                    // 总页数名字
	public static final String TOTAL = "total";                             // 总记录数
	public static final String CART_PREFIX = "hzit_cart:";                  // 购物车的前缀名

	public static final String ORDER_TOKEN = "hzit_order_token:";           // 订单的token值
	public static final String ORDER_REPEAT_SUBMIT_MSG = "订单不能重复提交！";
	public static final String PAYLOG_PREFIX = "hzit_paylog_prefix:";       // 支付日志前缀
}
